﻿<%@ Page EnableEventValidation="true" Title="个人中心-账户明细" Language="C#" MasterPageFile="~/APP_Master/MasterPage_Personal.master"
    AutoEventWireup="true" CodeFile="per_accout.aspx.cs" Inherits="per_accout" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style>
        .per_record_ul_t {
            width: 100%;
            height: 35px;
            background: #EAEAEA;
        }

            .per_record_ul_t li {
                float: left;
                width: 16%;
                text-align: center;
                line-height: 35px;
                font-size: 13px;
            }

        .per_bg_white_right {
            background: #FFF;
            float: right;
            width: 1005px;
            font-family: Microsoft YaHei;
        }

        .per_will_deposit_t {
            line-height: 30px;
        }

            .per_will_deposit_t b {
                float: left;
                background: red;
                font-size: 15px;
                padding: 0 20px;
                color: #FFFFFF;
                float: left;
                height: 30px;
                text-align: center;
                width: 80px;
            }

        .per_record_ul {
            width: 100%;
            padding: 10px 0;
            border-bottom: 1px solid #EAEAEA;
            height: 40px;
            color: #858585;
            line-height: 20px;
        }

            .per_record_ul li {
                float: left;
                width: 16%;
                /*text-indent: 55px;*/
            }

        .account_list {
            width: 99%;
            height: auto;
            line-height: 22px;
            padding: 10px 0;
            margin: 0 auto;
            border: 1px solid #ccc;
            background: #fcfcfc;
            margin-bottom: 18px;
        }

        .account_list_span1 {
            color: #999;
            padding: 0 25px 0 25px;
        }

        .account_list_span2 {
            color: #666;
            /*padding-right: 130px;*/
            width:220px;
            display:inline-block;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!--Right-->
    <div class="per_bg_white_right">
        <div class="per_will_deposit_t">
            <b>账户明细</b>
        </div>
        <div class="per_record_t_box">
            <dl class="select03">
                &nbsp;&nbsp;<asp:DropDownList ID="timesl" runat="server" AutoPostBack="true"
                    OnSelectedIndexChanged="timesl_SelectedIndexChanged" Height="20px"
                    Width="110px">
                    <asp:ListItem Value="0">全部</asp:ListItem>
                    <asp:ListItem Value="1">今天</asp:ListItem>
                    <asp:ListItem Value="2">近一周</asp:ListItem>
                    <asp:ListItem Value="3">近一个月</asp:ListItem>
                    <asp:ListItem Value="4">近三个月</asp:ListItem>
                    <asp:ListItem Value="5">近六个月</asp:ListItem>
                </asp:DropDownList>
            </dl>
            <dl class="select03">
                <asp:DropDownList ID="typeslddl" runat="server" AutoPostBack="true"
                    OnSelectedIndexChanged="typeslddl_SelectedIndexChanged" Height="20px"
                    Width="110px">
                    <asp:ListItem Value="0">全部</asp:ListItem>
                    <asp:ListItem Value="1">充值</asp:ListItem>
                    <asp:ListItem Value="2">提现</asp:ListItem>
                </asp:DropDownList>

            </dl>
            最多可查询6个月
        </div>
        <div class="account_list">
            <span class="account_list_span1">收入：</span>
            <span class="account_list_span2">充值金额<%=user_account!=null?user_account.czTotal:0%>元</span>
            <span class="account_list_span2">中奖金额<%=user_account!=null?user_account.winTotal:0%>元</span>
            <span class="account_list_span2">撤单返款0元</span>
            <span class="account_list_span2">红包派发0元</span>
            <br />
            <span class="account_list_span1">支出：</span>
            <span class="account_list_span2">消费金额<%=user_account!=null?user_account.buyLotteryTotal:0%>元</span>
            <span class="account_list_span2">提款金额<%=user_account!=null?user_account.txTotal:0%>元</span>
            <span class="account_list_span2">充值转红包<%=user_account!=null?user_account.txTotal:0%>元</span>
           
        </div>
        <ul class="per_record_ul_t">
            <li>时间</li>
            <li>交易类型</li>
            <li>收入+支出</li>
            <li>余额</li>
            <li>备注</li>
          <%--  <li>详情</li>--%>
        </ul>

        <%if (dt.Rows.Count > 0)
            { %>

        <%
            for (int i = 0; i < dt.Rows.Count; i++)
            {%>
        <ul class="per_record_ul">
            <li>
                <p><%=Convert.ToDateTime(dt.Rows[i]["timer"]).ToString("yyyy-MM-dd")%></p>
                <p><%=Convert.ToDateTime(dt.Rows[i]["timer"]).ToString("hh:mm:ss")%></p>
            </li>
            <li>
                <h2><%=dt.Rows[i]["typeid"].ToString()%></h2>
            </li>
            <li>
                <h2><em><%=dt.Rows[i]["sumoy"].ToString()%></em>元</h2>
            </li>
            <li>
                <h2><%=user_account != null?user_account.total:0 %>元</h2>
            </li>
            <li>
                <h2><%=dt.Rows[i]["state"].ToString()%></h2>
            </li>
          <%--  <li>
                <h2>查看详情</h2>
            </li>--%>
        </ul>
        <%}
        }
         else
            { %>
        <ul class="per_integral_con_ul">

            <div style="text-align: center">暂无记录</div>
        </ul>
        <%}%>
        <!--Pages-->
        <div class="sabrosus">
            <webdiyer:AspNetPager SubmitButtonClass="buttons" ID="AspNetPager1"
                runat="server" AlwaysShow="True" FirstPageText="首页"
                NextPageText="下一页" PrevPageText="前一页" LastPageText="尾页" PageSize="10"
                OnPageChanged="AspNetPager1_PageChanged">
            </webdiyer:AspNetPager>
        </div>
        <!--Pages-->
        <div class="per_r_infor per_noborder">
            <h3>购彩记录-注意事项：</h3>
            <p>历史记录指当年近一个月之前的所有购彩记录（不包含近一个月的投注记录）；</p>
            <p>如订单已显示奖金，但彩票账户实际未派发奖金，请耐心等待，系统正在与彩票中心核算奖金，预计30分钟左右派发到您的彩票账户；</p>
        </div>
    </div>
    <!--Right-->
    </div>
    <!--Content-->
</asp:Content>
